// 把各个文件的接口导入到index.js文件做统一的暴露
import { login, userInfo, userPhoto } from './user'
import {
  deptList,
  delDept,
  addDept,
  getDeptDetail,
  editDept
} from './departments'
import {
  administrator,
  getUserList,
  addUser,
  uploadUser,
  getUserInfo,
  setUserInfo,
  getPersonalInfo,
  setPersonalInfo,
  setRole
} from './employees'
import {
  getRoleList,
  updateRole,
  addRole,
  delRole,
  getCompany
} from './setting'

export const loginAPI = login
export const userInfoAPI = userInfo
export const userPhotoAPI = userPhoto

export const deptListAPI = deptList
export const delDeptAPI = delDept
export const addDeptAPI = addDept
export const getDeptDetailAPI = getDeptDetail
export const editDeptAPI = editDept

export const administratorAPI = administrator
export const getUserListAPI = getUserList
export const addUserAPI = addUser
export const uploadUserAPI = uploadUser
export const getUserInfoAPI = getUserInfo
export const setUserInfoAPI = setUserInfo
export const getPersonalInfoAPI = getPersonalInfo
export const setPersonalInfoAPI = setPersonalInfo
export const setRoleAPI = setRole

export const getRoleListAPI = getRoleList
export const updateRoleAPI = updateRole
export const addRoleAPI = addRole
export const delRoleAPI = delRole
export const getCompanyAPI = getCompany
